package com.soft.javase.day01.practice;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/15
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("---------------------银行账户--------------------");
        BankAccount account = new BankAccount(5418814523L, "张三", "341181199912123054", "19954367893", "zs123@qq.com");
        System.out.println("账户ID："+account.getAccountId());
        System.out.println("户主姓名："+account.getOwnerName());
        System.out.println("户主身份证号："+account.getOwnerIdCard());
        System.out.println("户主电话："+account.getOwnerPhone());
        System.out.println("户主邮箱："+account.getOwnerEmail());

        System.out.println();
        System.out.println("---------------------皇帝--------------------");
        Emperor emperor = new Emperor("李四", "1840.09.01-1900.06.10", "经济军事实力稳居第一", "一个受民拥戴的好皇帝");
        emperor.show();

        System.out.println();
        System.out.println("---------------------学生--------------------");
        Student student = new Student("王五", 23, "男");
        student.show();
        student.study();


        System.out.println();
        System.out.println("---------------------成绩计算--------------------");
        GradeAnalyze grade = new GradeAnalyze();
        grade.setJavaGrade(95.0f);
        grade.setCSharpGrade(85.0f);
        grade.setMysqlGrade(90.0f);
        grade.average();
        grade.sum();

        GradeAnalyze gradeAnalyze = new GradeAnalyze(90.0f, 85.0f, 85.0f);
        gradeAnalyze.average();
        gradeAnalyze.sum();

    }
}